﻿using System;
using System.Collections.Generic;
using System.Linq;
using Microsoft.Phone.Shell;


namespace FindMe
{
    public class MainTile
    {
        public static void CreateDefault()
        {
            //live tile start 
            ShellTile mainTile = ShellTile.ActiveTiles.First();

            //the new tile info to use to update the tile
            var tileData = new StandardTileData()
            {
                Title = "find.me",
                Count = 0,
                BackgroundImage = new Uri("/Images/findMeTile.png", UriKind.Relative),
                BackBackgroundImage = new Uri("/Images/findMeIcon.png", UriKind.Relative),
                BackTitle = "find.me",
                BackContent ="1"
            };

            // Update the tile
             mainTile.Update(tileData);
        }
    }
}
